package com.cz.nongyetongv5.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.List;

public class JianGuanDuiXiangFilter implements Serializable{

	private Integer id;

	private String name;

	private List<Integer> kinds = new ArrayList<Integer>();

	private List<Integer> category = new ArrayList<Integer>();

	private List<Integer> leixing = new ArrayList<Integer>();

	private List<Integer> xinxi = new ArrayList<Integer> () ;

	private String year = new GregorianCalendar().get(Calendar.YEAR) + "" ;

	private List<String> ids = new ArrayList<String> ();


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public JianGuanDuiXiangFilter(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

	public JianGuanDuiXiangFilter() {
	}
	private boolean isAll=true;
	public boolean isAll() {
		return isAll;
	}

	public void setAll(boolean isAll) {
		this.isAll = isAll;
	}

	public List<Integer> getKinds() {
		return kinds;
	}

	public void setKinds(List<Integer> kinds) {
		this.kinds = kinds;
	}

	public List<Integer> getCategory() {
		return category;
	}

	public void setCategory(List<Integer> category) {
		this.category = category;
	}

	public List<Integer> getLeixing() {
		return leixing;
	}

	public void setLeixing(List<Integer> leixing) {
		this.leixing = leixing;
	}

	public List<Integer> getXinxi() {
		return xinxi;
	}

	public void setXinxi(List<Integer> xinxi) {
		this.xinxi = xinxi;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	@Override
	public boolean equals(Object o) {

		if (o == null){
			return false;
		}

		if (!(o instanceof JianGuanDuiXiangFilter)){

			return false;

		}

		JianGuanDuiXiangFilter filter = (JianGuanDuiXiangFilter) o ;


		return this.id == filter.getId() ;
	}

	public List<String> getIds() {
		if(ids==null)ids=new ArrayList<String>();
		return ids;
	}

	public void setIds(List<String> ids) {
		this.ids = ids;
	}






}
